package com.knife.hospital.mapper;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.knife.hospital.entity.ArrangementPO;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface ArrangementPOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArrangementPO record);

    int insertSelective(ArrangementPO record);

    ArrangementPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArrangementPO record);

    int updateByPrimaryKey(ArrangementPO record);

    ArrangementPO selectByDoctorIdAndDate(@Param("doctorId") Integer doctorId, @Param("date") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") Date date);

    List<ArrangementPO> getArrangement(@Param("id") Integer id, @Param("date") Date date);
}

